package com.whut.gkd.dao;

import com.whut.gkd.bean.ShopInfo;
import com.whut.gkd.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IUserDao {
    User findUserByUsername(String Username);

    List<User> findAll(@Param("start") int start, @Param("size")int size, @Param("username") String username);

    void deleteById(int id);

    void add(User user);

    User selectUserById(int id);

    void update(User user);

    int getTotalCount(@Param("username") String username);

    void updateUserRole(ShopInfo shopinfo);

    void deleteAll(@Param("ids") List<Integer> ids);


    void addUser(User user);

    void applyManager(@Param("applicanId") int applicanId,@Param("applicanName") String applicanName,@Param("reason") String reason);

    void applyShop(@Param("applicanId") int applicanId, @Param("applicanName") String applicanName, @Param("reason") String reason, @Param("shopName") String shopName, @Param("shopDescription") String shopDescription);


    void suspendedBYId(int id);

    void normalBYId(int id);
}
